package com.test.entity;

import java.util.Map;

import com.test.util.ConfigUtils;
import com.test.util.ObjectUtils;

/**
 * 
 */
/**
 * Title. <br>
 * Description.
 * <p>
 * Copyright: Copyright (c) 2010-9-19 下午01:55:29
 * <p>
 * Company: 北京宽连十方数字技术有限公司
 * <p>
 * Author: liuxl@c-platform.com
 * <p>
 * Version: 1.0
 * <p>
 */
public class FTPConfig {

	private String ACT_ID = null;

	private String APACHE_PATH = null;

	private String FTP_FILEADDRESS = null;

	private String FTP_IPADDRESS = null;

	private String FTP_LOGINNAME = null;

	private String FTP_LOGINPASSWORD = null;

	private String FTP_PORT = null;

	private String IP_RANGES = null;

	private Map<String, Object> map = null;

	public FTPConfig() {

		try {
			ConfigUtils config = new ConfigUtils("FTPConfig.properties", ConfigUtils.TYPE.PROPERTY);
			map = config.getAllValue();
			if (ObjectUtils.isNull(map))
				return;
		}
		catch (Exception e) {
			e.printStackTrace();
		}
		this.FTP_IPADDRESS = (String) map.get("FTP_IPADDRESS");
		this.FTP_FILEADDRESS = (String) map.get("FTP_FILEADDRESS");
		this.FTP_LOGINNAME = (String) map.get("FTP_LOGINNAME");
		this.FTP_LOGINPASSWORD = (String) map.get("FTP_LOGINPASSWORD");
		this.FTP_PORT = (String) map.get("FTP_PORT");
		this.APACHE_PATH = (String) map.get("APACHE_PATH");
		this.ACT_ID = (String) map.get("ACT_ID");
		this.IP_RANGES = (String) map.get("IP_RANGES");
	}

	public String getACT_ID() {
		return this.ACT_ID;
	}

	public String getAPACHE_PATH() {
		return this.APACHE_PATH;
	}

	public String getFTP_FILEADDRESS() {
		return this.FTP_FILEADDRESS;
	}

	public String getFTP_IPADDRESS() {
		return this.FTP_IPADDRESS;
	}

	public String getFTP_LOGINNAME() {
		return this.FTP_LOGINNAME;
	}

	public String getFTP_LOGINPASSWORD() {
		return this.FTP_LOGINPASSWORD;
	}

	public String getFTP_PORT() {
		return this.FTP_PORT;
	}

	public void setACT_ID(String act_id) {
		this.ACT_ID = act_id;
	}

	public void setAPACHE_PATH(String apache_path) {
		this.APACHE_PATH = apache_path;
	}

	public void setFTP_FILEADDRESS(String ftp_fileaddress) {
		this.FTP_FILEADDRESS = ftp_fileaddress;
	}

	public void setFTP_IPADDRESS(String ftp_ipaddress) {
		this.FTP_IPADDRESS = ftp_ipaddress;
	}

	public void setFTP_LOGINNAME(String ftp_loginname) {
		this.FTP_LOGINNAME = ftp_loginname;
	}

	public void setFTP_LOGINPASSWORD(String ftp_loginpassword) {
		this.FTP_LOGINPASSWORD = ftp_loginpassword;
	}

	public void setFTP_PORT(String ftp_port) {
		this.FTP_PORT = ftp_port;
	}

	public String getIP_RANGES() {
		return IP_RANGES;
	}

	public void setIP_RANGES(String ip_ranges) {
		IP_RANGES = ip_ranges;
	}

}
